﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; 

namespace CentaLine.Infrastructure
{
    public  static class DBHelper
    {
        static DBHelper() {
           // DatabaseFactory.SetDatabaseProviderFactory(new DatabaseProviderFactory());
        }

        public static Database CreateDataBase(string name = "")
        {
            Database db = String.IsNullOrEmpty(name) ? DatabaseFactory.CreateDatabase() : DatabaseFactory.CreateDatabase(name);
            return db;
        }
    }
}
